Thread: [help] Object-Oriented Programming

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    delete

    ....
    Last edited by null321; 08-02-2009 at 01:34 PM.

  2. #2
    Webhead Spidey's Avatar
    Join Date
    Jul 2009
    Posts
    285
    If someone knows how to do that
    Yes, Recursion!

    tell me the code.
    No, try it out yourself first. Post some code if you get stuck. Don't just ask other people to do your work for you.
    Spidey out!

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Plenty of tutorials on recursion. Basically a function that calls itself. Not very difficult.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by null321
    This is not a work... its just one thing that i imagined and i would like to know how to do.
    Unfortunately, we have no way of telling whether this is a homework question that was set by your teacher, or a homework question that you set for yourself. Either way...

    Quote Originally Posted by null321
    im still waiting for a good soul who sends me the entire code of my idea lol
    so i will can study it and learn more about c++
    ... it is a homework question, so please read and follow the homework policy.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by null321
    ok people, just forget what i said... one person says to do the code by myself... other says to read tutorials... others distrust me and say that this is a homework or some kind of work and im trying to get the work done...
    You would be rather naive if you believe that students do not come here to ask for answers to homework that they have not even tried to do themselves. You should attempt to write the program by yourself, with help from tutorials and other available material, and only when you are stuck do you post your attempt here and get specific help.

    Quote Originally Posted by null321
    i dont need to read this kind of stuff... I just would like to meet people who could help me... and i didnt find here.
    On all three message board based online communities that I am a regular of, those who seek help are required to show that they have put in a reasonable amount of effort into helping themselves.

    Quote Originally Posted by null321
    Please some administrator of the forum delete this thread.
    *puts on moderator cap* No. At most I may just close this thread, but for now I shall give you another chance to help yourself so that we can help you better.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's a good Object Oriented Strategy for OpenGL/Graphics
    By indigo0086 in forum Game Programming
    Replies: 9
    Last Post: 04-03-2007, 06:27 PM
  2. object oriented C
    By FlatLost in forum C Programming
    Replies: 4
    Last Post: 11-08-2005, 06:22 AM
  3. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  4. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM